package com.seu.multithread.demo03;

/**
 * @author liangfeihu
 * @since 2019/2/18
 */
public class ReverseDemo {

    public static void main(String[] args) {

        String test = "abcdefg";

        System.out.println(new StringBuilder(test).reverse());

        char[] arr = test.toCharArray();

        for (int i = arr.length - 1; i >= 0; i--) {
            System.out.print(arr[i]);
        }

        test.toCharArray();
        test.charAt(0);

    }

}
